package ar.uba.fi.taller2.ftrs.query;

import java.util.ArrayList;

public class Texp {
	Tboolexp b=null;
	Tidlist l=null;
	String i=null;
	
	public Texp(String ident) {
	  this.i=ident  ;
	  }
	
	public Texp(Tidlist list) {
	  this.l=list  ;
	  }
	
	public Texp(Tboolexp boolexp) {
	  this.b=boolexp  ;
	  }
	
	public ArrayList interpret() { 
	if ( this.l !=null)
		return l.interpret();
	if ( this.b !=null)
		return b.interpret();
	if ( this.i !=null)
    	return Tindex.getDocumentList(this.i);    	
    return new ArrayList();    
	}
    
}
